package com.huse.pigservice.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 记录猪舍编号信息的表
 * </p>
 *
 * @author xinxin
 * @since 2021-05-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Piggery对象", description="记录猪舍编号信息的表")
public class Piggery implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "猪舍位置id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "猪舍编号或者栅栏编号")
    private String label;

    @ApiModelProperty(value = "父id")
    private Integer parentId;

    /**
     * 子节点
     */
    List<Piggery> children;

    /**
     *是否可用  0为可用
     */
    private boolean disabled;

    private Date createTime;

    private Date updateTime;


}
